home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / PictView / main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-14  |  814 b   |  38 lines  |  [TEXT/KAHL]

  1. /*
  2. ** main function for PictView applictation
  3. ** Copyright © 1991 Mark Gross 
  4. ** (RR2, Box 84, Clayville, NY 13322);         
  5. ** this file may be published everywhere, but no charge
  6. ** may be made for its use.  Please contact me about any bugs found.
  7. ** I'm also looking for Macintosh development work, so drop me a line
  8. ** if you think I could help.  
  9. **    
  10. ** I modified the TPICTApp to read Scribble documents 
  11. ** because I had no PICTs availabe and did have SPCTs!
  12. */
  13.  
  14. #include "TPICTApp.h"
  15. #include <oops.h>
  16. #include "TScrollDoc.h"
  17.  
  18. TScrollDoc *gCurrScrollDoc;
  19.  
  20. main()
  21. {
  22.     TPICTApp    *theApp;
  23.     
  24.     MoreMasters();
  25.  
  26.     theApp = (TPICTApp *)new(TPICTApp);
  27.     theApp->Init();
  28.     
  29.     if(theApp->InitApp() )
  30.     {
  31.         if(!theApp->OpenDocFromFinder() )
  32.             theApp->OpenNewDoc();
  33.             
  34.         theApp->EventLoop();
  35.         theApp->CleanUp();
  36.     }
  37. }/*the end*/
  38.